<% HttpSession httpSession = request.getSession();
   Employee employee = (Employee)session.getAttribute("user");
   if(employee == null || employee.getRole()== null){
   	response.sendRedirect("errorLogin.jsp");
   }
%>
<%@ page import="com.msti.entity.Student"%>
<%@ page import="java.util.*"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="com.msti.entity.Employee"%>
<%@page import="com.msti.entity.Course"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<h1 align="center">Student detail page</h1>
<%
	List<Course> courses = new ArrayList<Course>();
	List<Student> allUnConStudent = new ArrayList<Student>();
	allUnConStudent = (List<Student>) request.getSession()
			.getAttribute("allUnConStudent");
	int i = Integer.parseInt(request.getParameter("i"));
	Student student = allUnConStudent.get(i);
%>
Name : <h2><%=student.getFullName()%></h2>
NIC	 :<h2><%=student.getNICNO()%></h2>
Address:<h2><%=student.getAddress()%></h2>
Passport No:<h2><%=student.getPassportNo()%></h2>
CDCNO:<h2><%=student.getCDCNO()%></h2>
Telephone:<h2><%=student.getPhone()%></h2>
Selected Courses:
</body>
</html>